home *** CD-ROM | disk | FTP | other *** search
/ Gigarom 1 / Gigarom Macintosh Archives (Quantum Leap)(CDRM1080320)(1993).iso / FILES / HYP / C-D / DeveloperStax.cpt / Developer Stack 1.2r / card_7738.txt < prev    next >
Text File  |  1989-02-26  |  1KB  |  54 lines

  1. -- card: 7738 from stack: in.2r
  2. -- bmap block id: 0
  3. -- flags: 4000
  4. -- background id: 2612
  5. -- name: ChangeMenu
  6.  
  7.  
  8. -- part contents for background part 2
  9. ----- text -----
  10. ChangeMenu
  11.  
  12. -- part contents for background part 13
  13. ----- text -----
  14. 11
  15.  
  16. -- part contents for background part 3
  17. ----- text -----
  18.  
  19. ChangeMenu lets you change the names of items in menus you've created using the NewMenu* XFCN.  For example:
  20.  
  21.   ChangeMenu myMenu, 2, "Go to Address"
  22.  
  23. Will change the second menu item in menu "myMenu" to read "Go To Address".  If the original item was disabled or checked, the changed item will be also.  
  24.  
  25. You can not change the title of a menu, only the items in the meu itself.
  26.  
  27. •••
  28.  
  29. All the credit, (even the descriptions above) go to the creator of this ingenious XCMD:
  30.  
  31. Nine to Five Software Company
  32. P.O. Box 915
  33. Greenwood, IN  46142
  34. (317) 887-2154
  35. & Michael Long
  36.  
  37. See also NewMenu*, EnableMenu*, DeleteMenu*,  CheckMenu*, and ShowMenu*
  38.  
  39.  
  40.  
  41. -- part contents for background part 10
  42. ----- text -----
  43. Syntax:
  44.  
  45. ChangeMenu <menuNumber>,
  46. <itemNumber>,<"Item">
  47.  
  48.  
  49. <menuNumber> is the MenuID returned by the original newMenu call.
  50.  
  51. <itemNumber> is the number of the item in the menu that you want to rename.
  52.  
  53. "Item" is the new name of 
  54. <itemNumber>.